﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AtDevice
{
    /// <summary>
    /// Exception that is thrown when the AT device
    /// sends the generic ERROR message.
    /// </summary>
    public class AtException : ApplicationException
    {
    }

    /// <summary>
    /// Exception that is thrown when the AT device
    /// sends an CME error message.
    /// </summary>
    public class CmeException : ApplicationException
    {
        //private string _error;
        public CmeException(string error)
        {
          //  _error = error;
        }
    }

    /// <summary>
    /// Exception that is thrown when the AT device
    /// sends an CMS error message.
    /// </summary>
    class CmsException : ApplicationException
    {
        //private int _error;
        public CmsException(int error)
        {
          //  _error = error;
        }
    }

    /// <summary>
    /// 
    /// </summary>
    public class NoCarrierException : ApplicationException
    {
    }

    /// <summary>
    /// Exception that is thrown when an unsupported command was sent to the device.
    /// </summary>
    class CommandNotSupported : ApplicationException
    {
    }

    /// <summary>
    /// Thrown when the signal strength is unknown.
    /// </summary>
    public class UnknownSignalException : ApplicationException
    {
    }
}
